package com.fanxuankai.boot.log.web;

import com.fanxuankai.boot.log.annotation.Log;
import com.fanxuankai.boot.log.config.MyJsonFilter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author fanxuankai
 */
@RestController
@Log(paramsFilters = {MyJsonFilter.class})
public class GreetingController {
    @GetMapping("hi")
    public String hi(String username, String password, HttpServletRequest request) {
        return "Hi, " + username;
    }
}
